package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 5206383930534542680L;

    private String id;
    private String name;
    private Integer age;
    private Date bir;

    private Card card;//关系属性  不要出现在toString方法里面

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBir() {
        return bir;
    }

    public void setBir(Date bir) {
        this.bir = bir;
    }

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", bir=" + bir +
                '}';
    }
}
